import request from '@/utils/request'
/**
 * 登录功能
 * @param {*} data
 * @returns
 */
export function login(data) {
  return request({
    url: '/index/login',
    method: 'post',
    data
  })
}

/**
 * 获取用户资料
 */
export const GetUserInfoAPI = () => {
  return request({
    url: '/index/profile',
    method: 'post'
  })
}
/**
 *主页统计信息
 */
export const GetEchart = () => {
  return request({
    url: '/index/baseInfo'
  })
}
